package com.todo.admin.service.api.response;

import com.todo.admin.common.base.LoginInfo;
import com.todo.admin.common.base.RoleInfo;
import lombok.Data;

/**
 * @author azhebuxing
 * @date 2025/2/20 01:01
 * @description
 */
@Data
public class QueryStaffDetailByUserNameResp {

    private boolean isAdmin;

    private Long deptId;

    private RoleInfo roleInfo;

    /**
     * 当超过这个时间 则触发刷新缓存时间
     */
    private Long autoRefreshCacheTime;

    protected Long userId;

    /**
     * 用户唯一标识，缓存的key
     */
    protected String cachedKey;

    protected String username;

    protected String password;

    /**
     * 登录信息
     */
    protected final LoginInfo loginInfo = new LoginInfo();
}
